package com.haiyou.dc.thread;

public class TestLambda {

    public static void main(String[] args) {

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("xx");
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("xx");

        Human man = () -> {
            System.out.println("xxxx");
        };
        man.say();
    }
}

interface Human {
    void say();
}

class Man implements Human {

    @Override
    public void say() {
        System.out.println("say ........");
    }
}